//
//  WxChannelApi.h
//  kq_flutter_core_widget
//
//  Created by wtb on 2024/12/27.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>

NS_ASSUME_NONNULL_BEGIN

@interface WxChannelApi : NSObject

+(instancetype _Nullable)defualtWxChannelApi;

+(BOOL)handleWXOpenURL:(NSURL *)url;

+(BOOL)handleOpenUniversalLink:(NSUserActivity *)userActivity;

// 微信授权登录
-(void)handleWxAuthCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 微信文本分享
-(void)handleWxShareTextCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 微信网页分享
-(void)handleWxShareWebCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 打开小程序
-(void)openMiniProgramCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 微信图片分享
-(void)handleWxShareImageCall:(FlutterMethodCall *)call result:(FlutterResult)result;

@end

NS_ASSUME_NONNULL_END
